package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dyqstart
 * @create 2021-09-03-15:01
 * @since 1.0.0
 */
public interface SupplierDao {

    Integer getCount();


    List<Supplier> getSupplierList(@Param("page") Integer page,
                                   @Param("rows") Integer rows,
                                   @Param("supplierName") String supplierName);

    void saveSupplier(Supplier supplier);

    void updateSupplier(@Param("supplier") Supplier supplier,@Param("supplierId") Integer supplierId);

    void deleteSupplierByIds(@Param("ids") String[] ids);
}
